This paper presents a scheme to implement a voice real-time transmission system, in which we use AMR coding of WCDMA in 3G for reference. The system is based on multi-thread technology and circular buffering queue mechanism, as well as UDP. 借鉴3G中WCDMA标准的AMR语音编码算法,结合多线程和循环缓冲区队列的方法,并采用UDP协议,给出了一个语音实时传输系统的实现方案。
Buffer module stores audio-video packets which received and processed by the network module to the circular buffering queue to solve the problem which caused by packets loss, jitter and packets reordering. 缓冲模块把从网络模块接收到的音视频数据包进行处理,然后将处理后的数据存储在循环队列中,以此来缓解网络丢包、抖动和乱序引起的问题。